﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Globalization;
using OutSource.Common.MarketSense;

namespace QianJin.Views.Shared
{
    public class BaseMaster : System.Web.Mvc.ViewMasterPage<BaseViewData>
    {
        protected string GetString(string id)
        {
            return (string)this.GetGlobalResourceObject("qianjin", id);
        }

        protected string MapImagePath(string imgName)
        {
            return string.Format(CultureInfo.InvariantCulture, "/content/{0}/{1}", MarketSense.CurrentMarket, imgName);
        }

        public NavigationPosition NavPos { get; set; }
        public string BannerImgName
        {
            get;
            set;
        }
    }
}
